import request from '@/utils/request'

// 查询患者诊断记录列表
export function listRecord(query) {
  return request({
    url: '/websocket/patientRecord/list',
    method: 'get',
    params: query
  })
}

// 查询患者诊断记录详细
export function getRecord(id) {
  return request({
    url: '/websocket/patientRecord/getPatientRecordById',
    method: 'get',
    params: {
      id
    }
  })
}

// 新增患者诊断记录
export function addRecord(data) {
  return request({
    url: '/websocket/patientRecord/add',
    method: 'post',
    data: data
  })
}

// 修改患者诊断记录
export function updateRecord(data) {
  return request({
    url: '/websocket/patientRecord/update',
    method: 'put',
    data: data
  })
}

// 删除患者诊断记录
export function delRecord(ids) {
  return request({
    url: '/websocket/patientRecord/batchDelete',
    method: 'post',
    params: {
      ids
    }
  })
}
